/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "危害因素检测", description = "危害因素检测实体类")
public class DamageExamination extends BaseEntity {

    public DamageExamination() {
        super();
    }

    public DamageExamination(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "水司名称", name = "corpName", required = true)
    private String corpName;

    @ApiModelProperty(value = "检测名称", name = "name" )
    private String name;

    @ApiModelProperty(value = "编码", name = "code", required = true)
    private String code;

    @ApiModelProperty(value = "检测时间", name = "examinationTime", required = true)
    private Date examinationTime;

    @ApiModelProperty(value = "检测时间字符串，用于导出", name = "examinationTimeStr" )
    private String examinationTimeStr;

    @ApiModelProperty(value = "责任单位code", name = "responsibleDeptCode", required = true)
    private String responsibleDeptCode;

    @ApiModelProperty(value = "责任单位名称", name = "responsibleDeptName", required = true)
    private String responsibleDeptName;

    @ApiModelProperty(value = "检测内容", name = "content", required = true)
    private String content;

    @ApiModelProperty(value = "缺陷", name = "defect", required = true)
    private String defect;

    @ApiModelProperty(value = "整改", name = "rectification", required = true)
    private String rectification;

    @ApiModelProperty(value = "附件", name = "attachment" )
    private String attachment;

    @ApiModelProperty(value = "预览附件", name = "attachment" )
    private String previewAttachment;

    public String getPreviewAttachment() {
        return previewAttachment;
    }

    public void setPreviewAttachment(String previewAttachment) {
        this.previewAttachment = previewAttachment;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getExaminationTime() {
        return examinationTime;
    }

    public void setExaminationTime(Date examinationTime) {
        this.examinationTime = examinationTime;
    }

    public String getResponsibleDeptCode() {
        return responsibleDeptCode;
    }

    public void setResponsibleDeptCode(String responsibleDeptCode) {
        this.responsibleDeptCode = responsibleDeptCode;
    }

    public String getResponsibleDeptName() {
        return responsibleDeptName;
    }

    public void setResponsibleDeptName(String responsibleDeptName) {
        this.responsibleDeptName = responsibleDeptName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDefect() {
        return defect;
    }

    public void setDefect(String defect) {
        this.defect = defect;
    }

    public String getRectification() {
        return rectification;
    }

    public void setRectification(String rectification) {
        this.rectification = rectification;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getExaminationTimeStr() {
        return examinationTimeStr;
    }

    public void setExaminationTimeStr(String examinationTimeStr) {
        this.examinationTimeStr = examinationTimeStr;
    }

    @Override
    public String toString() {
        return "DamageExamination{" +
                "corpCode='" + corpCode + '\'' +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", examinationTime=" + examinationTime +
                ", responsibleDeptCode='" + responsibleDeptCode + '\'' +
                ", responsibleDeptName='" + responsibleDeptName + '\'' +
                ", content='" + content + '\'' +
                ", defect='" + defect + '\'' +
                ", rectification='" + rectification + '\'' +
                '}';
    }


}
